Make GtkFileChoser remember the last directory opened
authorStéphane Maniaci <stephane.maniaci@gmail.com>
Thu, 14 Apr 2011 19:14:26 +0000 (14:14 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Fri, 15 Apr 2011 20:34:22 +0000 (15:34 -0500)
commite3ce60cc2d0dd00f58318a3a967650864a29df4a
tree21184189b8eb47d44cff8dad01231b0a8ceff1ae
parent1fdd4915fc91f01e0dd3323cebb0d70ab5a55dba
Make GtkFileChoser remember the last directory opened

Introduces a 'last-folder-uri' GSettings key, where we remember the last-opened
folder from the previous instance of the file chooser.

The idea is that this works globally, across all applications, so it will be
easy to do things like

  1. Save an attachment from a mail (or some other file)
  2. Open another program
  3. Do File/Open and automatically get sent to the folder where (1) happened.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=644426
gtk/gtkfilechooserdefault.c
gtk/org.gtk.Settings.FileChooser.gschema.xml